{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "e037814a",
   "metadata": {},
   "source": [
    "### 上周学习内容\n",
    "* A.python的第一行代码\n",
    "* B.观察标准库\n",
    "\n",
    "#### 重要资源：\n",
    "> [PYTHON官网](https://python.org)\n",
    "\n",
    "> [blogs](https://cnblogs.com/xuzhichao)\n",
    "\n",
    "\n",
    "### 本周学习内容\n",
    "\n",
    "#### 1.python环境配置\n",
    "* A. [pycharm](https://www.jetbrains.com/pycharm/)\n",
    "> a.项目管理类的IDE\n",
    "> b.[github education pack](https://education.github.com/pack)可获得免费一年 专业版使用\n",
    "\n",
    "### 启动jupyternotebook\n",
    "\n",
    "#### 2.项目1：奇数中选择指定时间\n",
    "#### 3.变量\n",
    "> 变量只能是字母、数字、下划线组合\n",
    "> 变量名开头不能是数字\n",
    "> 以下关键词不能声明为变量名\n",
    "[]\n",
    "\n",
    "#### 4. if else 条件判断\n",
    "> 二级层是执行过程即是else 行\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "21d6eb1e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "from datetime import datetime\n",
    "odds = [ 1,3,5,7,9,11,13,15,17,19,\n",
    "        21,23,25,27,29,31,33,35,37,39,\n",
    "        41,43,45,47,49,51,53,55,57,59]\n",
    "\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odds:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute.\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "82368373",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "54"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "datetime.today().minute"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "d4834821",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "guosiwen jianglaoban\n",
      "jianglaoban jianglaoban\n"
     ]
    }
   ],
   "source": [
    "name = \"guosiwen\"\n",
    "name2 = \"jianglaoban\"\n",
    "print(name,name2)\n",
    "\n",
    "name = \"jianglaoban\"\n",
    "print(name,name2)\n",
    "\n",
    "#%"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}